﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="blogview.aspx.cs"
    Inherits="chatblog.blogview" Title="老友故事" %>

<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc1" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Stylesheet1.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 4px;
            background-color: Gray;
        }
        .style2
        {
            color: #666666;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="background-image: url(../img/background.jpg); background-position: left;
        background-repeat: repeat-x; vertical-align: middle; line-height: 25px;">
        <table style="width: 100%;">
            <tr>
                <td class="oa">
                    <a href="http://www.f980.com" target="_blank">藏宝网</a>

                </td>
                <td style="width: 500px; text-align: right;">
                    <uc1:login ID="login1" runat="server" />
                </td>
            </tr>
        </table>
    </div>

    <div style="width: 100%; height: 80px; border-bottom-color: Gray; border-bottom-width: 1px;
        border-bottom-style: solid; background-image: url(../img/bloghead.gif); background-position: left;
        background-repeat: no-repeat;">
<table style="width:100%; height:100%"><tr>
        <td>
        <asp:HyperLink ID="HyperLink_default" runat="server" Font-Bold="true" Font-Size="Large">首页</asp:HyperLink>        
        </td>
        <td style="width:300px; vertical-align:bottom;">
        <asp:TextBox ID="TextBox_keyword" runat="server" Width="219px"></asp:TextBox>  &nbsp;
                <asp:Button ID="Button_search" runat="server" Text="搜索" 
                onclick="Button_search_Click" /> 
        </td>
        </tr></table>
    </div>
<div>
        <table style="width: 100%">
            <tr>
                <td style="width: 180px; border-color: Gray; border-style: solid; border-width: 1px;
                    vertical-align: top;background-color:#F7F7F3;">
                    <asp:Label ID="Label_nickname1" runat="server" Text="昵称:"></asp:Label>
                    &nbsp;
                    <asp:HyperLink ID="HyperLink_addfriend" Target="_blank" runat="server">加为好友</asp:HyperLink>
                    <br />
                    <asp:Image ID="Image_user" runat="server" Width="160px" Height="100px" ImageUrl="~/img/userdefaultimg.gif" /><br />
                    <asp:Label ID="Label_level" runat="server" Text="等级"></asp:Label><br />
                    <asp:Label ID="Label_zjf" runat="server" Text="专家分"></asp:Label><br />
                    <asp:Label ID="Label_fatie" runat="server" Text="发帖"></asp:Label><br />
                    <asp:Label ID="Label_huitie" runat="server" Text="回帖"></asp:Label><br />
                    <asp:Label ID="Label_shijian" runat="server" Text="注册时间"></asp:Label><br />
                    <br />
                    <br />
                </td>
                <td  style="vertical-align:top;">
                    <div>
                        <table style="width: 100%; border-bottom-color: Gray; border-bottom-style: dotted;
                            border-bottom-width: 1px;">
                            <tr>
                                <td>
                                    <asp:Label ID="Label_title" runat="server" Text="标题" Font-Size="Large" Font-Bold="true"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label_createdate" runat="server" Text="日期"></asp:Label>
                                    &nbsp;
                                    <asp:Label ID="Label_fenshu" runat="server" Text="分数"></asp:Label>
                                    &nbsp; 分类:<asp:Label ID="Label_cata" runat="server" Text="分类"></asp:Label>
                                    &nbsp;<asp:HyperLink ID="HyperLink_edit" Visible="false" Target="_blank" runat="server">修改</asp:HyperLink>
                                </td>
                            </tr>
                        </table>
                        <br />
                    </div>
                    <div>
                        <asp:Literal ID="Literal_content" runat="server"></asp:Literal>
                        <br />
                        <asp:HyperLink ID="HyperLink_existfile" runat="server" Visible="false" Target="_blank">HyperLink</asp:HyperLink>
                    </div>
                </td>
            </tr>
        </table>
        <div style="width: 100%; border-top-color: Gray; border-top-style: solid; border-top-width: 1px;
         background-color:#E6E5D8;">
            养成写日记的好习惯.
        </div>
    </div>
    <asp:HyperLink ID="HyperLink_orgi" Visible="false" runat="server">原帖链接</asp:HyperLink>
 <div>
        <asp:DataList ID="DataList_return" runat="server" DataKeyField="RECID" Width="100%"
            OnItemDataBound="DataList_return_ItemDataBound" OnItemCommand="DataList_return_ItemCommand">
            <ItemTemplate>
                <table style="width: 100%; border-color: Gray; border-style: solid; border-width: 1px;">
                    <tr>
                        <td style="width: 180px; border-color: Gray; border-style: solid; border-width: 1px;
                            vertical-align: top; background-color:#F7F7F3">
                            <%#chatblog.zfunction.getnick( Eval("cbuserid").ToString())%>&nbsp;
                            <a target="_blank" href = '<%#ResolveUrl("~/bbs/addfriend.aspx?recid=") + Eval("userrecid").ToString()%>' > 加为好友</a>
                            <br />
                    <asp:Image ID="Image_user" runat="server" Width="160px" Height="100px" ImageUrl="~/img/userdefaultimg.gif"  /><br />
                    等级:百姓<br />
                    专家分:<%#Eval("cbpointzhuanjia").ToString()%><br />
发帖数:<%#Eval("fatieshu").ToString()%><br />
                    回帖数:<%#Eval("huitieshu").ToString()%><br />
                    注册时间:<%#Eval("usercreatedate").ToString()%><br />
                    <br />
                    <br />
                        </td>
                        <td  style="vertical-align:top;">
                            <div>
                                <table style="width: 100%; border-bottom-color: Gray; border-bottom-style: dotted;
                                    border-bottom-width: 1px;">
                                    <tr>
                                        <td>
                                            <%#chatblog.blogview.getemaillink(Eval("cbuserid").ToString(),Eval("cbext").ToString())%>
                                            &nbsp;
                                            <%#Eval("jccreatedate")%>&nbsp;  &nbsp;<asp:LinkButton
                                                ID="LinkButton_del" runat="server" Visible="false" CommandName="del">删除</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div>
                                <%#Eval("cbcontent")%><br />
                            </div>
                        </td>
                    </tr>
                </table>
                <div style="width: 100%;background-color:#E6E5D8;">
                    回帖是一种美德，可表达自己的思想和态度，也可给别人一些指导.
                </div>
            </ItemTemplate>
        </asp:DataList>
        <cc1:WebPager ID="WebPager_return" runat="server" ControlToPaginate="DataList_return"
            PageSize="30" OnPageIndexChanged="WebPager_return_PageIndexChanged" />
    </div>
    
    <div style="width:100%">
        <asp:Label ID="Label_point" runat="server" Text="分配积分"></asp:Label><br />
        <asp:Panel ID="Panel_point" runat="server">
        
            <asp:DropDownList ID="DropDownList1" runat="server">
            </asp:DropDownList>
            <asp:TextBox ID="TextBox1" runat="server" Text="0"></asp:TextBox>
            <br />
            <asp:DropDownList ID="DropDownList2" runat="server">
            </asp:DropDownList>
            <asp:TextBox ID="TextBox2" runat="server" Text="0"></asp:TextBox>
            <br />
            <asp:DropDownList ID="DropDownList3" runat="server">
            </asp:DropDownList>
            <asp:TextBox ID="TextBox3" runat="server" Text="0"></asp:TextBox>
            <br />
            <asp:DropDownList ID="DropDownList4" runat="server">
            </asp:DropDownList>
            <asp:TextBox ID="TextBox4" runat="server" Text="0"></asp:TextBox>
            <br />
            <asp:DropDownList ID="DropDownList5" runat="server">
            </asp:DropDownList>
            <asp:TextBox ID="TextBox5" runat="server" Text="0"></asp:TextBox>
            <br />
            
            <asp:Button ID="Button_point" runat="server" Text="分配积分" 
                onclick="Button_point_Click" />
        </asp:Panel>
    </div>
    <div style="border-top-color: Gray; border-top-style: dotted; border-top-width: 1px;">
        快速回复:<br />
        <span class="style2">昵称:</span><asp:TextBox ID="TextBox_nick" runat="server"></asp:TextBox>
        
        <span class="style2">邮件:</span><asp:TextBox ID="TextBox_email" runat="server"></asp:TextBox>
        <span class="style2">(不公开)</span><br />
        <FCKeditorV2:FCKeditor ID="Fck_Content" runat="server" Height="240px" ToolbarStartExpanded="false"
            Width="100%">
        </FCKeditorV2:FCKeditor>
        <asp:Button ID="Button_ok" runat="server" Text="提交" OnClick="Button_ok_Click" />
    </div>
</div>
</asp:Content>
